Separate example codes from README and add OpenAI, Claude, MCP examples#23
Separate example codes from README and add OpenAI, Claude, MCP examples#23
Conversation
Co-authored-by: comfuture <151300+comfuture@users.noreply.github.com>
comfuture
left a comment
There was a problem hiding this comment.
- It's better to leave the most basic usage instructions in the readme.
- It is not desirable to print the entire code in the usage of example code.
README.md
Outdated
| ``` | ||
|
|
||
| Please refer to the [Claude tool use](https://docs.anthropic.com/claude/docs/tool-use) documentation for more information. | ||
| See the [examples directory](./examples/) for comprehensive usage examples with different AI platforms: |
There was a problem hiding this comment.
It's better to leave the most basic usage instructions in the readme.
There was a problem hiding this comment.
Added basic usage instructions back to the README. The main usage section now shows the complete flow from function definition to schema generation with example output, addressing the feedback to keep essential instructions in the README itself. Commit 482f667.
… organization Co-authored-by: comfuture <151300+comfuture@users.noreply.github.com>
Restored basic usage instructions to the README as requested. The README now includes the essential function definition example, schema generation steps, JSON output, and key features like enum/Literal usage - all inline. References to comprehensive examples in the |
|
test fails on python 3.9 |
Co-authored-by: comfuture <151300+comfuture@users.noreply.github.com>
Fixed Python 3.9 compatibility issues in the tests. The problems were: 1) missing |
|
Please refer to the failure stack trace: The |
…nerics Co-authored-by: comfuture <151300+comfuture@users.noreply.github.com>
... Fixed the Python 3.9 compatibility issue. The problem was |
This PR addresses the need to organize example code better and provide comprehensive examples for different AI platforms.
Changes Made
📁 New Examples Directory
Created a dedicated
examples/directory with:📝 Updated README
examples/directory🧪 Added Tests
test/test_examples.pyto validate example syntax and functionality🆕 New Platform Support
Example Usage
All existing functionality remains unchanged - this is purely an organizational improvement with additional examples.
Fixes #22.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.